在 Vue 里，正确的生命周期钩子函数是 `onLoad` （这适用于小程序）或者 `created`、`mounted`（这适用于普通 Vue 项目），而不是 `onload`。所以你得把 `onload` 改成 `onLoad` 或者 `created`、`mounted`。下面以 `onLoad` 为例来修正代码：

```vue
<template>
  <div class="wrapper">
    <u-form label-width="200" :model="form" ref="uForm">
      <div class="column">
        <!--        <div class="flag-title light-color">基础信息</div>-->
        <u-form-item
            required
            :border-bottom="false"
            prop="storeName"
            label="店铺名称"
        ><u-input v-model="form.storeName" :custom-style="defaultInputStyle" disabled
        /></u-form-item>
        <u-form-item
            required
            :border-bottom="false"
            prop="storeLogo"
            label="店铺logo"
        >
          <div>
            <u-upload
                :file-list="storeLogoFileList"
                :header="{ accessToken: storage.getAccessToken() }"
                :action="action"
                width="200"
                @on-uploaded="onUploaded($event, 'storeLogo')"
                :max-count="1"
                :show-progress="false"
            ></u-upload>
          </div>
        </u-form-item>
        <u-form-item
            required
            :border-bottom="false"
            prop="storeType"
            label="店铺类型"
        >
          <!--          <div @click="showCategory()"   style="margin-right: 30rpx;">选择</div>-->

          <u-input
              :custom-style="defaultInputStyle"
              v-model="form.storeType"
              disabled
          /></u-form-item>

        <u-form-item
            required
            :border-bottom="false"
            prop="storeAddressPath"
            label="店铺所在地"
        >
          <!--          <div @click="showPicker()"   style="margin-right: 30rpx;">选择</div>-->
          <u-input
              :custom-style="defaultInputStyle"
              v-model="form.storeAddressPath"
              disabled
          />
        </u-form-item>

        <!-- <u-form-item
          required
          :border-bottom="false"
          prop="storeAddressPath"
          label="店铺定位"
        >
          <div class="get-center" @click="clickUniMap()">开始定位</div>
          <div class="tips-success" v-if="form.storeCenter">已成功定位</div>
        </u-form-item> -->

        <u-form-item
            required
            :border-bottom="false"
            prop="storeAddressDetail"
            label="店铺详细地址"
        ><u-input
            :custom-style="defaultInputStyle"
            v-model="form.storeAddressDetail" disabled
        /></u-form-item>

        <u-form-item
            required
            :border-bottom="false"
            prop="clerkName"
            label="店长姓名"
        ><u-input
            :custom-style="defaultInputStyle"
            v-model="form.clerkName" disabled
        /></u-form-item>

        <u-form-item
            required
            :border-bottom="false"
            prop="clerkPhone"
            label="联系方式"
        ><u-input
            :custom-style="defaultInputStyle"
            v-model="form.clerkPhone" disabled
        /></u-form-item>

        <u-form-item
            required
            :border-bottom="false"
            prop="storeStartTime"
            label="营业时间"
        >
          <view class="dateBtn" >
            <u-input
                :custom-style="defaultInputStyle"
                v-model="form.storeStartTime"
                class="date-input" disabled/>
            <u-icon name="arrow-right" class="date-icon"></u-icon>
          </view>
        </u-form-item>




        <u-form-item
            :border-bottom="false"
            prop="licencePhoto"
            label="营业执照电子版"
            required
        >

          <div>
            <u-upload
                :file-list="licencePhotoFileList"
                :header="{ accessToken: storage.getAccessToken() }"
                :action="action"
                width="200"
                @on-uploaded="onUploaded($event, 'licencePhoto')"
                :max-count="1"
                :show-progress="false"
            ></u-upload>

            <div class="tips">
              请压缩图片在2M以内，确保文字清晰以免上传或审核失败
            </div>
          </div>
        </u-form-item>

        <!-- 新增审核输入框 -->
        <u-form-item
            required
            :border-bottom="false"
            prop="auditComment"
            label="审核意见"
            v-if="form.storeDisable==='APPLYING' || form.storeDisable==='REFUSED'"
        ><u-input
            :custom-style="defaultInputStyle"
            v-model="form.auditComment"
            placeholder="请输入审核意见"
        /></u-form-item>



      </div>
    </u-form>
    <div class="button-group" v-if="form.storeDisable==='APPLYING' ||  form.storeDisable==='REFUSED'">
      <div class="button agree" @click="agree">同意</div>
      <div class="button reject" @click="reject">拒绝</div>
    </div>

    <!--    <div class="submit" @click="validatorStep1Form">提交平台审核</div>-->
    <m-city
        :provinceData="list"
        headTitle="区域选择"
        ref="cityPicker"
        @funcValue="getPickerParentValue"
        pickerSize="4"
    >
    </m-city>

    <u-select
        v-model="enableCategory"
        @confirm="confirmCategory"
        :list="categoryList"
    ></u-select>

    <uniMap v-if="mapFlag" @close="closeMap" @callback="callBackAddress" />

    <!--    <u-calendar v-model="show" :mode="mode" @change="changeDate" max-date="2100-01-01"></u-calendar>-->

  </div>
</template>

<script>
import { applyStep} from "@/api/entry";
import {getStoreByMember,enableStore,refusedStore,getStoreInfo} from "@/api/store";
import { getCategoryList } from "@/api/goods";
import city from "@/components/m-city/m-city.vue";
import storage from "@/utils/storage.js";
import { upload } from "@/api/common.js";
import uniMap from "@/components/uniMap";
import permision from "@/js_sdk/wa-permission/permission.js";
export default {
  components: { "m-city": city, uniMap },
  name: "addStore",
  data() {
    return {
      storage,
      mapFlag: false,
      show: false,
      dateLabel:'',
      action: upload, //图片上传数据
      defaultInputStyle: {
        background: "#f7f7f7",
        padding: "0 20rpx",
        "border-radius": "10rpx",
      },
      goodsManagementCategory: "",
      storeLogoFileList: [],
      licencePhotoFileList: [],
      categoryList: [],
      form: {
        storeName: "",
        storeLogo: "",
        goodsManagementCategory: "",
        storeAddressPath: "",
        storeAddressDetail: "",
        storeDesc: "",
        storeType:"",
        clerkName: "",
        clerkPhone: "",
        storeCenter: "",
        storeAddressIdPath: "",
        storeId: "",
        licencePhoto: "",
        storeStartTime: "",
        auditComment:""
      },
      list: [
        {
          id: "",
          localName: "请选择",
          children: [],
        },
      ],
      rules: {
        // 验证规则
        // goodsManagementCategory: [
        //   { required: true, message: "请选择店铺经营类目" },
        // ],
        storeName: [{ required: true, message: "请填写店铺名称" }],
        storeLogo: [{ required: true, message: "请上传店铺logo" }],
        storeDesc: [{ required: true, message: "请填写店铺简介" }],
        storeCenter: [{ required: true, message: "请选择店铺位置" }],
        storeAddressIdPath: [{ required: true, message: "请选择店铺位置" }],
        storeAddressDetail: [{ required: true, message: "请输入店铺详细地址" }],
      },
      enableCategory: false,
    };
  },
  onLoad(options) {
    this.getStoreByMember(options.id);
    this.$refs.uForm.setRules(this.rules);
    // this.fetchCategoryList();


  },

  //props: ["companyData"],
  watch: {
    model: {
      handler(newName, oldName) {
        const judgeDeepPhoto = ["storeLogo","licencePhoto"];

        judgeDeepPhoto.forEach((key) => {
          if (this.form[key]) {
            this.form[key].split(",").forEach((item) => {
              this[`${key}FileList`].push({ url: item });
            });
          }
        });


      }
    }
  },

  methods: {
    // 其他方法保持不变
    agree() {
      // 实现同意的逻辑
      console.log("同意");
      enableStore( this.form.id).then(res => {

        if (res.data.code === 200) {
          uni.showToast({
            title: "审核成功",
            icon: "none",
          });
        }
        console.log(res);
      });
    },
    reject() {
      // 实现拒绝的逻辑
      if(this.form.auditComment==''  || this.form.auditComment==null){
        uni.showToast({
          title: "请输入拒绝原因",
          icon: "none",
        });
        return
      }

      console.log("同意");
      refusedStore( this.form.id, this.form.auditComment).then(res => {

        if (res.data.code === 200) {
          uni.showToast({
            title: "拒绝成功",
            icon: "none",
          });
        }
        console.log(res);
      });
      // console.log("拒绝");
      // uni.showModal({
      //   title: "拒绝原因",
      //   content: "请输入拒绝的原因",
      //   showCancel: false,
      //   editable: true,
      //   success: (res) => {
      //     if (res.confirm) {
      //       console.log("拒绝原因:", res.content);
      //       // 可以在这里将拒绝原因发送到服务器
      //     }
      //   },
      // });
    },
    dateClick(){
      this.show = true
    },
    changeDate(e){
      this.form.storeStartTime = e.result
      this.dateLabel = e.result
    },
    getStoreByMember(id){

      //  this.userInfo=storage.getUserInfo();
      getStoreInfo(id).then(res=>{

        console.log(res);
        var data=res.data.result
        this.form.storeName = data.storeName;
        this.form.storeLogo = data.storeLogo;
        this.form.goodsManagementCategory = data.goodsManagementCategory;
        this.form.storeAddressDetail = data.storeAddressDetail;
        this.form.storeAddressPath = data.storeAddressPath;
        this.form.storeDesc = data.storeDesc;
        this.form.storeAddressIdPath = data.storeAddressIdPath;
        this.form.storeCenter = data.storeCenter;
        this.form.clerkName = data.clerkName;
        this.form.clerkPhone = data.clerkPhone;
        this.form.storeType=data.storeType
        this.form.licencePhoto = data.licencePhoto;
        this.form.storeStartTime = data.storeStartTime;
        this.form.id=data.id;
        //店铺状态：storeDisable
        this.form.storeDisable=data.storeDisable
        this.form.auditComment=data.auditComment

        // 给图片赋值
        const judgeDeepPhoto = ["storeLogo","licencePhoto"];

        judgeDeepPhoto.forEach((key) => {
          if (this.form[key]) {
            this.form[key].split(",").forEach((item) => {
              this[`${key}FileList`].push({ url: item });
            });
          }
        });

      })
    },
    callBackAddress(val) {
      console.log(val);
      this.form.storeAddressDetail = val.address;
      this.form.storeCenter = `${val.longitude},${val.latitude}`;
    },
    // 关闭地图
    closeMap() {
      this.mapFlag = false;
    },
    // 打开地图并访问权限
    clickUniMap() {
      console.log("click");
      // #ifdef APP-PLUS
      if (plus.os.name == "iOS") {
        // ios系统
        permision.judgeIosPermission("location")
            ? (this.mapFlag = true)
            : this.refuseMap();
      } else {
        // 安卓
        this.requestAndroidPermission(
            "android.permission.ACCESS_FINE_LOCATION"
        );
      }
      // #endif

      // #ifndef APP-PLUS
      this.mapFlag = true;
      // #endif
    },

    // 如果拒绝权限 提示区设置
    refuseMap() {
      uni.showModal({
        title: "温馨提示",
        content: "您已拒绝定位,请开启",
        confirmText: "去设置",
        success(res) {
          if (res.confirm) {
            //打开授权设置
            // #ifndef MP-WEIXIN
            uni.getSystemInfo({
              success(res) {
                if (res.platform == "ios") {
                  //IOS
                  plus.runtime.openURL("app-settings://");
                } else if (res.platform == "android") {
                  //安卓
                  let main = plus.android.runtimeMainActivity();
                  let Intent = plus.android.importClass(
                      "android.content.Intent"
                  );
                  let mIntent = new Intent("android.settings.ACTION_SETTINGS");
                  main.startActivity(mIntent);
                }
              },
            });
            // #endif
          }
        },
      });
    },
    // 获取安卓是否拥有地址权限
    async requestAndroidPermission(permisionID) {
      var result = await permision.requestAndroidPermission(permisionID);

      if (result == 1) {
        this.mapFlag = true;
      } else {
        this.refuseMap();
      }
    },

    confirmCategory(val) {
      this.form.storeType = val[0].label;
      this.storeType = val[0].label;
    },
    async fetchCategoryList() {
      const res = await getCategoryList(0);
      if (res.data.success) {
        if (res.data.result.length) {

          this.categoryList = res.data.result.map((item) => {
            return { label: item.name, value: item.id };
          });

          // if (this.form.storeType) {
          //
          //   this.storeType = this.categoryList.find(
          //       (item) => this.form.storeType == item.name
          //   ).label;
          //
          // }
        }
      }
    },
    // 图片上传
    onUploaded(lists, key) {
      let images = [];
      lists.forEach((item) => {

        images.push(item.response.result);
      });
      this.form[key] = images;


    },
    getPickerParentValue(e) {
      this.form.storeAddressIdPath = [];
      console.log(e)
      let name = "";
      e.forEach((item, index) => {
        if (item.id) {
          // 遍历数据
          this.form.storeAddressIdPath.push(item.id);
          if (index == e.length - 1) {
            name += item.localName;
          } else {
            name += item.localName + ",";
          }
          this.$set(this.form,'storeAddressPath',name)
        }
      });

      this.form.storeCenter = e[e.length-1].center
    },
    // 显示三级地址联动
    showPicker() {
      this.$refs.cityPicker.show();
    },
    showCategory() {
      this.enableCategory = true;
    },
    validatorStep1Form() {
      this.$refs.uForm.validate(async (valid) => {
        console.log(valid);
        if (valid) {
          const params = { ...this.form };
          params.storeLogo = params.storeLogo.toString();
          params.storeAddressIdPath = params.storeAddressIdPath.toString();

          const res = await applyStep(params);
          if (res.data.success) {
            uni.showToast({
              title: "提交成功!",
              icon: "none",
            });
            this.$emit("callback");
          }
        }
      });
    },
  },
};
</script>
<style>
/* page {
  background: #fff;
} */
</style>
<style lang="scss" scoped>
//@import url("./entry.scss");
.get-center {
  padding: 12rpx 30rpx;
  background: $light-color;
  border-radius: 10rpx;
  font-size: 28rpx;
  color: #fff;
  font-weight: bold;
  display: inline;
}
.column {
  padding: 32rpx;
  margin-bottom: 20rpx;
  background: #fff;
}
.submit {
  color: #fff;
  margin-top: 120rpx;
  background: rgba($light-color, 0.8);
}
.tips {
  color: #999;
  font-size: 28rpx;
  line-height: 1.2;
  margin-top: 10rpx;
}
.tips-success {
  color: $weChat-color;
  font-size: 28rpx;
}


.flag-title {
  font-size: 42rpx;
  font-weight: bold;
}
.submit,
.notice {
  font-weight: bold;
  font-size: 28rpx;

  height: 92rpx;
  text-align: center;
  letter-spacing: 4rpx;
  line-height: 92rpx;
  border-radius: 20rpx;
}
.wrapper {
  padding:16rpx;
}
.dateBtn {
  display: flex; /* 使用 flex 布局 */
  align-items: center; /* 垂直居中对齐 */
  justify-content: space-between; /* 水平方向两端对齐 */
  padding: 10rpx; /* 可根据需要调整内边距 */
  // border: 1rpx solid #ccc; /* 可选：添加边框 */
  border-radius: 5rpx; /* 可选：添加圆角 */
}

.date-input {
  flex: 1; /* 让输入框占据剩余空间 */
  margin-right: 10rpx; /* 与图标之间留出一些间距 */
}

.date-icon {
  /* 可根据需要调整图标样式 */
}

.button-group {
  display: flex;
  justify-content: space-between;
  margin-top: 120rpx;
}
.button {
  flex: 1;
  margin: 0 10rpx;
  color: #fff;
  text-align: center;
  height: 92rpx;
  line-height: 92rpx;
  border-radius: 20rpx;
}
.agree {
  background: rgba($light-color, 0.8);
}
.reject {
  background: rgba($light-color, 0.8);
}
</style>
```

关键修改之处在于把 `onload` 改成了 `onLoad`，这样就能正确调用生命周期钩子函数并获取传递过来的值了。